/**
 * Class containing the tit-for-two-tats strategy.
 * @author	081028AW
 */
public class StrategyPovlov extends Strategy
   {
  /**
   * Encoding for tit-for-tat strategy.
   */
  // 0 = defect, 1 = cooperate

   public StrategyPovlov()
      {
      name = "Povlov";
      opponentLastMove = 1;
      myLastMove = 1;

      }  

   public int nextMove(){
      if (opponentLastMove == 1)
         {
         return myLastMove;
         }
      else
         {
    	  return 1-myLastMove;
         }

      }  

   }  

